package com.orkhonsoft.tengrinshar.chat.entity;

import java.io.Serializable;
import java.util.Date;



/**
 * 聊天记录
 * 
 * @author bain
 * @email 2668013653@qq.com
 * @date 2018-10-29 10:59:16
 */
public class ChatRecordEntity implements Serializable {
	private static final long serialVersionUID = 1L;
	
	//ID
	private Long id;
	//发送用户ID
	private Long sendUserId;
	//接收用户ID
	private Long receiveUserId;
	//发布ID
	private Long releaseId;
	//类型:0文字,1图片,2语音
	private Integer type;
	//内容
	private String content;
	//文件ID:图片或语音类型时的文件ID
	private Long fileId;
	//已读状态
	private Integer isRead;
	//创建时间
	private Date createTime;

	public ChatRecordEntity() {
		super();
	}
	public ChatRecordEntity(Long sendUserId, Long receiveUserId, Long releaseId, Integer type, String content,
			 Integer isRead, Date createTime) {
		super();
		this.sendUserId = sendUserId;
		this.receiveUserId = receiveUserId;
		this.releaseId = releaseId;
		this.type = type;
		this.content = content;
		this.fileId = fileId;
		this.isRead = isRead;
		this.createTime = createTime;
	}
	/**
	 * 设置：ID
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：ID
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：发送用户ID
	 */
	public void setSendUserId(Long sendUserId) {
		this.sendUserId = sendUserId;
	}
	/**
	 * 获取：发送用户ID
	 */
	public Long getSendUserId() {
		return sendUserId;
	}
	/**
	 * 设置：接收用户ID
	 */
	public void setReceiveUserId(Long receiveUserId) {
		this.receiveUserId = receiveUserId;
	}
	/**
	 * 获取：接收用户ID
	 */
	public Long getReceiveUserId() {
		return receiveUserId;
	}
	/**
	 * 设置：发布ID
	 */
	public void setReleaseId(Long releaseId) {
		this.releaseId = releaseId;
	}
	/**
	 * 获取：发布ID
	 */
	public Long getReleaseId() {
		return releaseId;
	}
	/**
	 * 设置：类型:0文字,1图片,2语音
	 */
	public void setType(Integer type) {
		this.type = type;
	}
	/**
	 * 获取：类型:0文字,1图片,2语音
	 */
	public Integer getType() {
		return type;
	}
	/**
	 * 设置：内容
	 */
	public void setContent(String content) {
		this.content = content;
	}
	/**
	 * 获取：内容
	 */
	public String getContent() {
		return content;
	}
	/**
	 * 设置：文件ID:图片或语音类型时的文件ID
	 */
	public void setFileId(Long fileId) {
		this.fileId = fileId;
	}
	/**
	 * 获取：文件ID:图片或语音类型时的文件ID
	 */
	public Long getFileId() {
		return fileId;
	}
	/**
	 * 设置：已读状态
	 */
	public void setIsRead(Integer isRead) {
		this.isRead = isRead;
	}
	/**
	 * 获取：已读状态
	 */
	public Integer getIsRead() {
		return isRead;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
}
